package laya.semi.process;

import java.util.*;
import java.text.*;

import org.apache.log4j.Logger;

public class IteratorInitialActivity
	implements IGenericClassActivity
{
	private static Logger log = Logger.getLogger(IteratorInitialActivity.class);

	public void execute(IProcessContext oCtx)
		throws Exception
	{
		String[] vParam = oCtx.getActivityParameter().split(":");
		String oIteratorField = vParam[0];
		List oParent = (List)oCtx.getField(vParam[1]);
		oCtx.setField(oIteratorField, oParent.iterator());
	}
}
